home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 13680 < prev    next >
Mailbox/MIME Entity  |  1996-08-05  |  1.3 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: Mailbox/MIME Entity (archive/mbox).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Newsgroup Content (archive/news) magic Supported
100% dexvert Mailbox/MIME Entity (archive/mbox) magic Supported
100% dexvert Internet Message Format (text/imf) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file news, ASCII text default
100% checkBytes Printable ASCII default
100% dexmagic PrintFox/Pagefox WEAK default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/950 MIME Email (1.0) default
100% detectItEasy Format: plain text[LF] default (weak)
100% xdgMime message/news default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 65 6e | 67 6e 65 77 73 31 2e 45 |Path: en|gnews1.E|
|00000010| 6e 67 2e 53 75 6e 2e 43 | 4f 4d 21 75 73 65 6e 65 |ng.Sun.C|OM!usene|
|00000020| 74 0a 46 72 6f 6d 3a 20 | 52 41 4a 55 20 41 4c 4c |t.From: |RAJU ALL|
|00000030| 55 52 49 20 3c 72 61 6a | 75 2e 61 6c 6c 75 72 69 |URI <raj|u.alluri|
|00000040| 40 53 75 6e 2e 43 4f 4d | 3e 0a 4e 65 77 73 67 72 |@Sun.COM|>.Newsgr|
|00000050| 6f 75 70 73 3a 20 63 6f | 6d 70 2e 6c 61 6e 67 2e |oups: co|mp.lang.|
|00000060| 63 2b 2b 0a 53 75 62 6a | 65 63 74 3a 20 52 65 3a |c++.Subj|ect: Re:|
|00000070| 20 73 74 61 74 69 63 20 | 6d 65 6d 62 65 72 73 20 | static |members |
|00000080| 6f 66 20 61 20 63 6c 61 | 73 73 20 74 65 6d 70 6c |of a cla|ss templ|
|00000090| 61 74 65 0a 44 61 74 65 | 3a 20 32 36 20 4d 61 72 |ate.Date|: 26 Mar|
|000000a0| 20 31 39 39 36 20 32 30 | 3a 33 32 3a 35 36 20 47 | 1996 20|:32:56 G|
|000000b0| 4d 54 0a 4f 72 67 61 6e | 69 7a 61 74 69 6f 6e 3a |MT.Organ|ization:|
|000000c0| 20 53 75 6e 20 4d 69 63 | 72 6f 73 79 73 74 65 6d | Sun Mic|rosystem|
|000000d0| 73 20 49 6e 63 2e 2c 20 | 4d 6f 75 6e 74 61 69 6e |s Inc., |Mountain|
|000000e0| 20 56 69 65 77 2c 20 43 | 41 0a 4d 65 73 73 61 67 | View, C|A.Messag|
|000000f0| 65 2d 49 44 3a 20 3c 34 | 6a 39 6b 39 6f 24 73 6d |e-ID: <4|j9k9o$sm|
|00000100| 6c 40 65 6e 67 6e 65 77 | 73 31 2e 45 6e 67 2e 53 |l@engnew|s1.Eng.S|
|00000110| 75 6e 2e 43 4f 4d 3e 0a | 52 65 66 65 72 65 6e 63 |un.COM>.|Referenc|
|00000120| 65 73 3a 20 3c 33 31 35 | 37 38 31 43 42 2e 32 44 |es: <315|781CB.2D|
|00000130| 44 31 40 64 69 67 65 78 | 2e 6e 65 74 3e 0a 4e 4e |D1@digex|.net>.NN|
|00000140| 54 50 2d 50 6f 73 74 69 | 6e 67 2d 48 6f 73 74 3a |TP-Posti|ng-Host:|
|00000150| 20 67 6f 62 69 6e 64 2e | 65 6e 67 2e 73 75 6e 2e | gobind.|eng.sun.|
|00000160| 63 6f 6d 0a 4d 69 6d 65 | 2d 56 65 72 73 69 6f 6e |com.Mime|-Version|
|00000170| 3a 20 31 2e 30 0a 43 6f | 6e 74 65 6e 74 2d 54 79 |: 1.0.Co|ntent-Ty|
|00000180| 70 65 3a 20 74 65 78 74 | 2f 70 6c 61 69 6e 3b 20 |pe: text|/plain; |
|00000190| 63 68 61 72 73 65 74 3d | 75 73 2d 61 73 63 69 69 |charset=|us-ascii|
|000001a0| 0a 43 6f 6e 74 65 6e 74 | 2d 54 72 61 6e 73 66 65 |.Content|-Transfe|
|000001b0| 72 2d 45 6e 63 6f 64 69 | 6e 67 3a 20 37 62 69 74 |r-Encodi|ng: 7bit|
|000001c0| 0a 58 2d 4d 61 69 6c 65 | 72 3a 20 4d 6f 7a 69 6c |.X-Maile|r: Mozil|
|000001d0| 6c 61 20 31 2e 31 32 53 | 55 4e 20 28 58 31 31 3b |la 1.12S|UN (X11;|
|000001e0| 20 49 3b 20 53 75 6e 4f | 53 20 35 2e 34 20 73 75 | I; SunO|S 5.4 su|
|000001f0| 6e 34 6d 29 0a 54 6f 3a | 20 79 61 6d 69 40 64 69 |n4m).To:| yami@di|
|00000200| 67 65 78 2e 6e 65 74 0a | 58 2d 55 52 4c 3a 20 6e |gex.net.|X-URL: n|
|00000210| 65 77 73 3a 33 31 35 37 | 38 31 43 42 2e 32 44 44 |ews:3157|81CB.2DD|
|00000220| 31 40 64 69 67 65 78 2e | 6e 65 74 0a 0a 22 53 74 |1@digex.|net.."St|
|00000230| 65 76 65 6e 20 44 2e 20 | 41 72 6e 6f 6c 64 22 20 |even D. |Arnold" |
|00000240| 3c 79 61 6d 69 40 64 69 | 67 65 78 2e 6e 65 74 3e |<yami@di|gex.net>|
|00000250| 20 77 72 6f 74 65 3a 0a | 3e 48 69 2c 0a 3e 0a 3e | wrote:.|>Hi,.>.>|
|00000260| 48 6f 77 20 77 6f 75 6c | 64 20 79 6f 75 20 67 6f |How woul|d you go|
|00000270| 20 61 62 6f 75 74 20 64 | 65 63 6c 61 72 69 6e 67 | about d|eclaring|
|00000280| 20 61 20 73 74 61 74 69 | 63 20 6d 65 6d 62 65 72 | a stati|c member|
|00000290| 20 6f 66 20 61 20 63 6c | 61 73 73 20 74 65 6d 70 | of a cl|ass temp|
|000002a0| 6c 61 74 65 3f 20 20 0a | 3e 45 78 61 6d 70 6c 65 |late? .|>Example|
|000002b0| 3a 0a 3e 0a 3e 74 65 6d | 70 6c 61 74 65 3c 63 6c |:.>.>tem|plate<cl|
|000002c0| 61 73 73 20 6b 69 6e 64 | 3e 0a 3e 63 6c 61 73 73 |ass kind|>.>class|
|000002d0| 20 73 69 6d 70 6c 65 20 | 7b 0a 3e 20 20 20 20 70 | simple |{.> p|
|000002e0| 72 69 76 61 74 65 3a 0a | 3e 20 20 20 20 20 20 20 |rivate:.|> |
|000002f0| 20 73 74 61 74 69 63 20 | 6b 69 6e 64 20 73 6f 6d | static |kind som|
|00000300| 65 56 61 72 3b 0a 3e 7d | 3b 0a 3e 0a 3e 73 69 6d |eVar;.>}|;.>.>sim|
|00000310| 70 6c 65 3c 6b 69 6e 64 | 3e 20 6b 69 6e 64 20 73 |ple<kind|> kind s|
|00000320| 69 6d 70 6c 65 3a 3a 73 | 6f 6d 65 56 61 72 3b 0a |imple::s|omeVar;.|
|00000330| 3e 0a 3e 0a 3e 54 68 69 | 73 20 73 65 65 6d 73 20 |>.>.>Thi|s seems |
|00000340| 74 6f 20 66 6f 6c 6c 6f | 77 20 74 68 65 20 67 65 |to follo|w the ge|
|00000350| 6e 65 72 61 6c 20 70 61 | 74 74 65 72 6e 20 66 6f |neral pa|ttern fo|
|00000360| 72 20 64 65 66 69 6e 69 | 6e 67 20 61 6e 64 20 64 |r defini|ng and d|
|00000370| 65 63 6c 61 72 69 6e 67 | 20 61 20 0a 3e 73 74 61 |eclaring| a .>sta|
|00000380| 74 69 63 20 6d 65 6d 62 | 65 72 2c 20 62 75 74 20 |tic memb|er, but |
|00000390| 69 74 20 72 65 73 75 6c | 74 73 20 69 6e 20 61 20 |it resul|ts in a |
|000003a0| 73 79 6e 74 61 78 20 65 | 72 72 6f 72 2e 20 20 57 |syntax e|rror. W|
|000003b0| 68 61 74 27 73 20 74 68 | 65 20 70 72 6f 62 6c 65 |hat's th|e proble|
|000003c0| 6d 3f 0a 3e 0a 3e 54 68 | 61 6e 6b 73 20 69 6e 20 |m?.>.>Th|anks in |
|000003d0| 61 64 76 61 6e 63 65 20 | 66 6f 72 20 61 6e 79 20 |advance |for any |
|000003e0| 61 64 76 69 63 65 21 0a | 3e 0a 3e 2d 53 74 65 76 |advice!.|>.>-Stev|
|000003f0| 65 2d 0a 0a 0a 4a 75 73 | 74 20 63 68 65 63 6b 20 |e-...Jus|t check |
|00000400| 74 68 65 20 73 79 6e 74 | 61 78 20 6f 66 20 74 68 |the synt|ax of th|
|00000410| 65 20 64 65 66 69 6e 69 | 74 69 6f 6e 20 6f 66 20 |e defini|tion of |
|00000420| 73 69 6d 70 6c 65 3a 3a | 73 6f 6d 65 56 61 72 2e |simple::|someVar.|
|00000430| 0a 54 68 65 20 74 79 70 | 65 20 6e 61 6d 65 2c 20 |.The typ|e name, |
|00000440| 6f 6e 63 65 20 79 6f 75 | 20 64 65 63 6c 61 72 65 |once you| declare|
|00000450| 20 61 20 74 65 6d 70 6c | 61 74 65 2c 20 69 73 20 | a templ|ate, is |
|00000460| 6e 6f 20 6c 6f 6e 67 65 | 72 20 27 73 69 6d 70 6c |no longe|r 'simpl|
|00000470| 65 27 2c 0a 62 75 74 20 | 27 73 69 6d 70 6c 65 3c |e',.but |'simple<|
|00000480| 6b 69 6e 64 3e 27 2e 20 | 53 6f 20 64 65 66 69 6e |kind>'. |So defin|
|00000490| 65 20 73 6f 6d 65 56 61 | 72 20 61 73 20 73 6f 6d |e someVa|r as som|
|000004a0| 65 74 68 69 6e 67 20 6c | 69 6b 65 0a 0a 69 6e 74 |ething l|ike..int|
|000004b0| 20 73 69 6d 70 6c 65 3c | 69 6e 74 3e 3a 3a 73 6f | simple<|int>::so|
|000004c0| 6d 65 56 61 72 28 31 30 | 29 3b 0a 0a 48 65 72 65 |meVar(10|);..Here|
|000004d0| 2c 20 74 68 65 20 74 79 | 70 65 20 6f 66 20 74 68 |, the ty|pe of th|
|000004e0| 65 20 6f 62 6a 65 63 74 | 20 69 73 20 69 6e 74 20 |e object| is int |
|000004f0| 61 6e 64 20 74 68 65 20 | 6e 61 6d 65 20 6f 66 20 |and the |name of |
|00000500| 74 68 65 20 6f 62 6a 65 | 63 74 20 69 73 0a 27 73 |the obje|ct is.'s|
|00000510| 69 6d 70 6c 65 3c 69 6e | 74 3e 3a 3a 73 6f 6d 65 |imple<in|t>::some|
|00000520| 56 61 72 27 20 69 6e 63 | 6c 75 64 69 6e 67 20 74 |Var' inc|luding t|
|00000530| 68 65 20 73 63 6f 70 65 | 20 71 75 61 6c 69 66 69 |he scope| qualifi|
|00000540| 65 72 2e 0a 0a 52 65 67 | 61 72 64 73 0a 0a 2d 20 |er...Reg|ards..- |
|00000550| 52 61 6a 75 20 41 6c 6c | 75 72 69 0a 0a |Raju All|uri.. |
+--------+-------------------------+-------------------------+--------+--------+